<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <script>
    var a, b, c;
    for (var i=100; i<=999; i++) {
      a = Math.floor(i/100);
      b = Math.floor((i-100*a)/10);
      c = i%10;
      if (Math.pow(a, 3) + Math.pow(b, 3) + Math.pow(c, 3) == i) {
        console.log(i);
      }
    }
  </script>
</body>
</html>